<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>外贸合同</title>
    <link rel="shortcut icon" type="image/x-icon" href="/images/logo.ico" />
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/style.css?v=202001010101">
    <link rel="stylesheet" type="text/css" href="/css/print.css?v=202001010101">
</head>
<body>
<div class="pring-page">
    <div class="print-btns layui-form">
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" onclick="javascript:window.print()"><i class="fa fa-print"></i> 打印</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" id="exportPdf"><i class="fa fa-file-pdf-o"></i> 导出PDF</button>
    </div>
    <div class="main">
        <div class="page-break">
            <div class="head">
                <div class="title22">销售合同</div>
                <div class="title22">SALES CONTRACT</div>
                <hr/>
            </div>
            <div id="conTempView">

            </div>
        </div>
    </div>
</div>
<script type="text/html" id="conTemp">
    <table style="width: 100%">
        <tr>
            <td width="90">日期： </td>
            <td width="40%">{{d.salesContract.contractDate}}</td>
            <td width="90">合同编号：</td>
            <td>{{d.salesContract.docNo}}</td>
        </tr>
        <tr>
            <td width="90"></td>
            <td width="40%"></td>
            <td width="90">客户单号：</td>
            <td>{{d.salesContract.customerOrderNo}}</td>
        </tr>
        <tr>
            <td>买方：</td>
            <td>{{d.salesContract.buyerName}}</td>
            <td>卖方：</td>
            <td>{{d.salesContract.sellerName}}</td>
        </tr>
        <tr>
            <td>开户行：</td>
            <td>{{d.salesContract.buyerBankName}}</td>
            <td>开户行：</td>
            <td>{{d.salesContract.sellerBankName}}</td>
        </tr>
        <tr>
            <td>银行账号：</td>
            <td>{{d.salesContract.buyerBankAccount}}</td>
            <td>银行账号：</td>
            <td>{{d.salesContract.sellerBankAccount}}</td>
        </tr>
        <tr>
            <td>地址：</td>
            <td>{{d.salesContract.buyerBankAddress}}</td>
            <td>地址：</td>
            <td>{{d.salesContract.sellerBankAddress}}</td>
        </tr>
        <tr>
            <td>电话：</td>
            <td>{{d.salesContract.buyerBankTel}}</td>
            <td></td>
            <td></td>
        </tr>
    </table>
    <div style="text-align: left; margin-top: 8px; margin-bottom: 8px;">
        兹经买卖双方同意由卖方出售买方购进如下货物，并按下列条款签定本合同：
    </div>
    <table style="width: 100%">
        <tr>
            <td width="50%">1.质量要求：由境外供应商提供，与卖方无关</td>
            <td width="50%">2.包装：原厂包装或供应商指定包装</td>
        </tr>
        <tr>
            <td width="50%">3.运输方式：运输方式由卖方负责，运输费用由买方承担</td>
            <td width="50%">4.付款条件：见《供应链服务框架协议》</td>
        </tr>
        <tr>
            <td width="50%">5.解决合同争议方式：向法院提出诉讼</td>
            <td width="50%">6.付款日期：见《供应链服务框架协议》</td>
        </tr>
        <tr>
            <td width="50%">7.合同一式两份，双方各执一份</td>
            <td width="50%">8.交货期限：见《供应链服务框架协议》</td>
        </tr>
        <tr>
            <td width="50%">9.产品名称、规格、数量、金额：</td>
            <td width="50%"></td>
        </tr>
    </table>
    <div class="printArea" style="margin-bottom: 8px">
        <table>
            <thead>
            <tr>
                <th>行号</th>
                <th>品名</th>
                <th>品牌</th>
                <th>型号</th>
                <th>数量</th>
                <th>单位</th>
                <th>单价</th>
                <th>总价</th>
                <th>币制</th>
            </tr>
            </thead>
            <tbody>
            {{# $.each(d.members,function(i,o){}}
            <tr>
                <td style="text-align: center">{{i+1}}</td>
                <td>{{o.goodsName}}</td>
                <td>{{o.goodsBrand}}</td>
                <td>{{o.goodsModel}}</td>
                <td style="text-align: right">{{formatCurrency(o.quantity)}}</td>
                <td style="text-align: center">{{o.unitName}}</td>
                <td style="text-align: right">{{o.unitPrice}}</td>
                <td style="text-align: right">{{formatCurrency(o.totalPrice)}}</td>
                <td style="text-align: center">{{o.currencyName}}</td>
            </tr>
            {{#});}}
            </tbody>
            <tfoot>
            <tr>
                <td colspan="4">合计 Total：</td>
                <td style="text-align: right">{{formatCurrency(d.tquantity)}}</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td style="text-align: right">{{formatCurrency(d.ttotalPrice)}}</td>
                <td>&nbsp;</td>
            </tr>
            </tfoot>
        </table>
    </div>
    <div style="position: absolute;width: 98%;overflow: hidden;height: 200px;margin-top: -10px">
        <table style="width: 100%;position: inherit;z-index: 10">
            <tr>
                <td height="100" width="50%">
                    <div style="float:left">买方：</div>
                    <div style="float:left">{{d.salesContract.buyerName}}</div>
                </td>
                <td width="50%">
                    <div style="float:left">卖方：</div>
                    <div style="float:left">{{d.salesContract.sellerName}}</div>
                </td>
            </tr>
            <tr>
                <td height="30">签字盖章：</td>
                <td>签字盖章：</td>
            </tr>
        </table>
        {{# if(!isEmpty(d.salesContract.sellerChapter)){}}
        <div class="chapter2 chapterArea" id="sellerChapter" style="position: inherit;z-index: -1;top: 20px;right: 250px;"><img src="{{d.salesContract.sellerChapter}}"></div>
        {{#}}}
    </div>
</script>
<script type="text/javascript" src="/js/jquery.min.js?v=202001010101"></script>
<script type="text/javascript" src="/layui/layui.js?v=202001010101"></script>
<script type="text/javascript" src="/js/app.js?v=202006010928"></script>
<script type="text/javascript" src="/finance/salesContract/print-contract.js?v=202001010102"></script>
</body>
</html>